package listener

import (
	"fmt"
    
    "collecter/app/event/interfaces"
)

type EventExample struct {
	EventName   string
	SubjectId   int64
	ExtraParams string
}

func (et EventExample) SetValue(eventName string, subjectId int64, extraParams string) interfaces.EventInterfacer {
	et.EventName = eventName
	et.SubjectId = subjectId
	et.ExtraParams = extraParams
	return et
}

func (et EventExample) Handle() error {
	fmt.Println("eventTest event is listen ... ")

	fmt.Printf(" EventExample-->Handle: %+v\n", et)

	return nil
}
